package com.zmn.oms.services.impl.conf.attachment;
import com.zmn.oms.model.entity.conf.attachment.ConfOrderAttachmentStandard;
import com.zmn.oms.persistence.interfaces.conf.attachment.ConfOrderAttachmentStandardDao;
import com.zmn.oms.services.interfaces.conf.attachment.ConfOrderAttachmentStandardService;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

import javax.annotation.Resource;
import java.util.List;
@Service
public class ConfOrderAttachmentStandardServiceImpl implements ConfOrderAttachmentStandardService{

    @Resource
    private ConfOrderAttachmentStandardDao confOrderAttachmentStandardDao;

    @Override
    public ConfOrderAttachmentStandard findStandardByConfAttachmentId(Integer configAttachmentId) {
        return confOrderAttachmentStandardDao.findStandardByConfAttachmentId(configAttachmentId);
    }

    @Override
    public List<ConfOrderAttachmentStandard> listByQuery(ConfOrderAttachmentStandard confOrderAttachmentStandard){
        return confOrderAttachmentStandardDao.listByQuery(confOrderAttachmentStandard);
    }

    @Override
    public ConfOrderAttachmentStandard selectByPrimaryKey(Integer standardId) {
        return confOrderAttachmentStandardDao.selectByPrimaryKey(standardId);
    }

    @Override
    @Transactional(rollbackFor = Exception.class)
    public int deleteByPrimaryKey(Integer standardId) {
        return confOrderAttachmentStandardDao.deleteByPrimaryKey(standardId);
    }

    @Override
    @Transactional(rollbackFor = Exception.class)
    public int insert(ConfOrderAttachmentStandard record) {
        return confOrderAttachmentStandardDao.insert(record);
    }

    @Override
    @Transactional(rollbackFor = Exception.class)
    public int insertSelective(ConfOrderAttachmentStandard record) {
        return confOrderAttachmentStandardDao.insertSelective(record);
    }

    @Override
    @Transactional(rollbackFor = Exception.class)
    public int deleteByAttachmentId(Integer attachmentId) {
        return confOrderAttachmentStandardDao.deleteByAttachmentId(attachmentId);
    }
    @Override
    @Transactional(rollbackFor = Exception.class)
    public int updateByAttachmentId(ConfOrderAttachmentStandard standard){
        return confOrderAttachmentStandardDao.updateByAttachmentId(standard);
    }

    @Override
    @Transactional(rollbackFor = Exception.class)
    public int updateByPrimaryKeySelective(ConfOrderAttachmentStandard record) {
        return confOrderAttachmentStandardDao.updateByPrimaryKeySelective(record);
    }

    @Override
    @Transactional(rollbackFor = Exception.class)
    public int updateByPrimaryKey(ConfOrderAttachmentStandard record) {
        return confOrderAttachmentStandardDao.updateByPrimaryKey(record);
    }

	@Override
	public List<ConfOrderAttachmentStandard> listByAttachmentIds(List<Integer> attachmentIds){
		 return confOrderAttachmentStandardDao.listByAttachmentIds(attachmentIds);
	}



}
